<template>
      <div class="system_list_wrap_alert" v-if="updateExeShow">
    <div class="system_list_wrap_alert_m">
      <!-- p -->
      <div class="system_list_wrap_alert_m_t">
        <img src="static/image/home/updateExe/update_small.png" />
        <img @click.stop.prevent="$emit('update:updateExeShow',!updateExeShow)" src="static/image/home/updateExe/update_close.png" />
      </div>
      <div class="system_list_wrap_alert_m_b">
        <img class="system_list_wrap_alert_m_b_m" src="static/image/home/updateExe/update_up.png" />
        <div class="system_list_wrap_alert_m_b_n">
          <div class="system_list_wrap_alert_m_b_n_t">
            {{ "当前版本" + Version }}
          </div>
          <div class="system_list_wrap_alert_m_b_n_n" @click.stop.prevent="isCheckUpdateFn">
            {{ "检测更新" }}
          </div>
        </div>
      </div>
      <!-- s -->
      <div class="system_list_wrap_alert_s" v-if="isUpdateShow">
        <div class="system_list_wrap_alert_s_t">
          <div>
            <h3>{{ "提示" }}</h3>
          </div>
          <div>
            <img class="system_list_wrap_alert_m_c" @click.stop.prevent="isUpdateShow = !isUpdateShow" src="static/image/home/updateExe/update_close.png" />
          </div>
        </div>
        <div class="system_list_wrap_alert_s_b">
          <div class="system_list_wrap_alert_s_b_t">
            {{ "当前已经是最新版本" }}
          </div>
          <div class="system_list_wrap_alert_s_b_n">
            <div class="system_list_wrap_alert_s_b_n_d">
              {{ "下载新版本" }}
            </div>
            <div class="system_list_wrap_alert_s_b_n_k" @click.stop.prevent="isUpdateShow = !isUpdateShow">
              {{ "我知道了" }}
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
           
<script>
export default {
  props: ["updateExeShow", "Version"],
  data() {
    return {
      isUpdateShow: false, // 手动检测版本更新
    };
  },
  methods: {
    // 手动检测是否需要更新
    isCheckUpdateFn() {
      let isUpdate = this.$shell("ManualUpdate", ["0"]);
      console.log(isUpdate, "手动检测是否需要更新");
    },
  },
};
</script>
<style scoped>
</style>